{extend name="public/base" /}
{block name='body'}
<div class="fly-home fly-panel" style="background-image: url();">
    <img src="__PUBLIC__/{$i.Cover}">
    <h1>
        {$i.Name}

        {if condition="$i.Sex eq '男'"}
        <i class="iconfont icon-nan"></i>
        {else /}
        <i class="iconfont icon-nv"></i>
        {/if}
        <i class="layui-badge fly-badge-vip">{$i.Level}</i>
        <!--
        <span style="color:#c00;">（管理员）</span>
        <span style="color:#5FB878;">（社区之光）</span>
        <span>（该号已被封）</span>
        -->
    </h1>

    <!--<p style="padding: 10px 0; color: #5FB878;">认证信息：layui 作者</p>-->

    <p class="fly-home-info">
        <span title="所需金币"><img style="height: 15px; width: 15px;" src="__IMG__/goldIcon.png" class="sw-money-icon">{$i.Gold}</span>
        <i class="iconfont icon-shijian"></i><span>{$i.CreateTime}</span>

        {if condition="$i.Desc eq ''"}
        <i class="iconfont icon-chengshi"></i><span>未知</span>
        {else /}

        <i class="iconfont icon-chengshi"></i><span>{$i.From}</span>
        {/if}

    </p>

    {if condition="$i.Desc eq ''"}
    <p class="fly-home-sign">（这个人比较懒,没有留下个人简介）</p>
    {else /}

    <p class="fly-home-sign">（{$i.Desc}）</p>
    {/if}


</div>
<div class="layui-container">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md6 fly-home-jie">
            <div class="fly-panel">
                <h3 class="fly-panel-title">{$i.Name} 最近的分享</h3>
                <ul class="jie-row">
                    {if condition="count($i.resource) > 0"}
                    {foreach $i.resource as $v}
                    <li>
                        <a href="{:url('home/index/detail',['guid'=>$v['PK_ResourceGuid']])}" class="jie-title"> {$v.Title}</a>
                        <i>{$v.CreateTime}</i>
                        <em class="layui-hide-xs">{$v.PageView}阅/{$v['rescomment']|comment_array_to_count}回复</em>

                    </li>
                    {/foreach}
                    {else /}
                    <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i
                            style="font-size:14px;">你还没有任何分享</i></div>
                    {/if}
                </ul>
            </div>
        </div>
        <div class="layui-col-md6 fly-home-jie">
            <div class="fly-panel">
                <h3 class="fly-panel-title">{$i.Name} 收藏</h3>
                <ul class="jie-row">
                    {if condition="count($i.collection) > 0"}
                    {foreach $i.collection as $v}
                    <li>
                        <a href="{:url('home/index/detail',['guid'=>$v['resource']['PK_ResourceGuid']])}" class="jie-title"> {$v['resource']['Title']}</a>
                        <i>{$v['CreateTime']}</i>
                        <div style="margin-right: 5px;"></div>
                    </li>
                    {/foreach}
                    {else /}
                    <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i
                            style="font-size:14px;">你没有任何收藏</i></div>
                    {/if}

                </ul>
            </div>
        </div>
        <div class="layui-col-md12 fly-home-da">
            <div class="fly-panel">
                <h3 class="fly-panel-title">{$i.Name} 最近的评论</h3>
                <ul class="home-jieda">

                    {if condition="count($i.recomment) > 0"}
                    {foreach $i.recomment as $v}
                    <li>
                        <p>
                            <span>{$v['CreateTime']}</span>
                            在<a href="{:url('home/index/detail',['guid'=>$v['resource']['PK_ResourceGuid']])}" target="_blank">{$v['resource']['Title']}</a>中回答：
                        </p>
                        <div class="home-dacontent">
                            {$v['comment']}
                        </div>
                    </li>
                    {/foreach}
                    {else /}
                    <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><span>你还没有任何评论</span>
                    </div>
                    {/if}


                </ul>
            </div>
        </div>
    </div>
</div>
{/block}